Relay apparatus, system and method, and storage medium

ABSTRACT

A system enables information transmission between a server which serves information by its own communication format and a client which receives service on a general network, with an efficient and simple structure. A conversion server  101  receives a video transmission request message from a client  103  in the HTTP protocol, the conversion server  101  converts the message into a message of a format of a server  102 , and transmits the converted message to the server  102 . Then, the conversion server  101  returns video data transferred from the server  102  to the client  103  in the HTTP protocol.

BACKGROUND OF THE INVENTION

[0001] The present invention relates to a relay apparatus, system and method and storage medium, and more particularly, to a relay apparatus, system and method and storage medium for information services by a server on a network to a client.

[0002] With high-speed and wide area Internet and Intranet environment, network application programs (application programs which run on a computer network as a platform), which conventionally handled only text data, handle multimedia data such as video and audio data having more complicated structure and requiring a larger capacity.

[0003] In this progress, the assignee of the present invention has proposed a network application program for providing a user with a video image obtained by a video recorder or video camera as a still image or moving image from a server program located at a remote place via a network.

[0004] Hereinafter, the above network application program will be referred to as a “video delivery system”.

[0005] On the other hand, as World Wide Web browsers (hereinafter simply referred to as “Web browsers” or “browsers”) such as Netscape Navigator (by Netscape Communications Corporation) and Internet Explorer (by Microsoft Corporation) became popular, the computer network, that has been utilized as conventional communication means only for E-mail, news service and FTP (File Transfer Protocol) and the like, is developing as the field of more various activities such as collection of information and cooperative shopping.

[0006] Accordingly, the Web browsers have been improved so as to provide not only multimedia information display but also a general user interface for various purposes. The introduction of HTML (Hypertext Markup Language), HTTP (Hypertext Transfer Protocol), JavaScript, Java and the like and rapid improvement of their functions show this tendency.

[0007] The above-described development of the Web browsers has produced a need to utilize a video delivery system in the Web system by a Web browser.

[0008] However, the video delivery system proposed by the present assignee merely uses a special-purpose client application program (referred to as a “video display client”). The special-purpose video display client is started from a Web browser. Accordingly, it is not integrated with the Web browser.

[0009] Further, it is possible to seemingly incorporate the above video display client in the Web browser by using a technique such as Plug-in module. However, the video display client is still an independent program in the Web browser, therefore, the high freedom of design owned by the Web browser cannot be utilized. From a home page designer's standpoint, even look & feel and user interface of the video client should be changed in accordance with his/her preference or purpose. However, this need is not satisfied.

[0010] From the above-described situation, there is a need for a video display client integrated with a Web browser, which can be used by a Web-browser extensible language such as Java (by Sun Microsystems, Inc.) or JavaScript, or generated by using such language.

[0011] However, to satisfy this requirement, it is necessary to solve the following problems:

[0012] 1. Absorption of difference between communication methods

[0013] 2. Prevention of reduction in execution efficiency

[0014] 3. Absorption of difference in video delivery format

[0015] Hereinbelow, these problems will be described.

[0016] <1. Absorption of Difference Between Communication Methods>

[0017] The basic operation of a Web browser is to transfer a file acquisition request message to a Web server, and to display data received as a reply to the request, on the premise that the data is sent in 1:1 correspondence with the request from the Web browser (client). Further, the Web browser must establish a communication path (hereinafter referred to as a “connection”) for each request to the Web server.

[0018] In the video delivery system, a server and a client first establish a connection therebetween, and then video information is transmitted in a one-way manner from the server. To remove this difference between these two communication methods as above, means for mediating from one communication method to the other communication method is required.

[0019] <2. Prevention of Reduction in Execution Efficiency>

[0020] If the video display client (Web-version video client) is integrated with a Web browser, the execution efficiency of the video display function and other functions will be reduced in comparison with the special-purpose video display client.

[0021] In use of the special-purpose video client, it is possible to specify the client in correspondence with the target data structure and a video delivery protocol and to optimize the operation of the client for the purpose. On the other hand, in use of the Web-version client, general data processing and data display functions provided by the Web browser must be used. Nevertheless, the Web-version client will be utilized by more users than those of the special-purpose client, since the users can use the Web-version client without labor of download and installation and therefore the Web-version client can be easily used in comparison with the special-purpose client. However, the Web-version client with low performance might lose the reputation of the video delivery system. For this reason, means for preventing the reduction in execution efficiency must be introduced.

[0022] <3. Absorption of Difference in Video Delivery Format>

[0023] Preferably, the above requirements 1 and 2 should be satisfied as requirements to the Web-version video client, and further, the Web-version video client should be independent of specific video delivery system and video delivery method. In the Web-version video client using Java or JavaScript, as a viewer (a video display portion) is realized as a common user interface on the Web browser, video information should be displayed regardless of the difference in type of server (video server) which delivers the video image, as normal image data can be displayed regardless of its data format such as GIF and JPEG. To meet this requirement, it is necessary to provide means for absorbing the difference in video delivery format.

SUMMARY OF THE INVENTION

[0024] The present invention has been made in consideration of the above situation, and has its object to provide a relay apparatus, system and method and storage medium to solve the all or at least one of the above problems and enable information transmission between a server which serves information in its own communication format and a client which uses the information service on a general network, with an efficient and simple construction.

[0025] The foregoing object is attained by providing a relay apparatus for transferring information from at least one server to at least one client via a network, the server performing stream information service in its own information transmission format, the apparatus comprising: first communication means for performing communication with the client in a communication method in correspondence with the client; second communication means for performing communication with the server in a communication method in correspondence with the server; first conversion means for converting a request message to the server, received via the first communication means from the client, to a request message for the server; and second conversion means for converting information, received via the second communication means from the server, to information in a format for the client.

[0026] Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same name or similar parts throughout the figures thereof.

BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0028]FIG. 1 is a block diagram showing the construction of a system according to a first embodiment of the present invention;

[0029]FIG. 2 is a schematic diagram showing the connection relation of apparatuses in the system of the first embodiment;

[0030]FIG. 3 is a block diagram explaining the operation of session starting processing according to the first embodiment;

[0031]FIG. 4 is a block diagram explaining the operation of session terminating processing according to the first embodiment;

[0032]FIG. 5 is a block diagram explaining the operation of video acquisition processing according to the first embodiment;

[0033]FIG. 6 is a block diagram showing the construction of the system according to a second embodiment of the present invention;

[0034]FIG. 7 is a flowchart showing the operation procedure of the session starting processing according to the second embodiment;

[0035]FIG. 8 is a flowchart showing the operation of the session terminating processing according to the second embodiment;

[0036]FIG. 9 is a flowchart showing the operation of the video acquisition processing according to the second embodiment;

[0037]FIG. 10 is a schematic diagram showing the connection relation of the apparatuses in the system according to the second embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0038] Hereinbelow, embodiments of the present invention will now be described in detail in accordance with the accompanying drawings.

[0039] First, prior to description of the details, the outline of embodiments will be described.

[0040] In the embodiments, the above-described three problems are solved by preparing the following function means:

[0041] substitutional execution means for executing a function of a special-purpose client;

[0042] efficiency promotion means for efficiently enabling the substitutional execution means; and

[0043] delivery-method switching & execution means in correspondence with plural types of video delivery methods.

[0044] The above means will be described in detail below.

[0045] <Substitutional Execution Means>

[0046] The substitutional execution means includes message transmission/reception means for transmitting/receiving a message from another program, message interpretation means for interpreting the message, and connection management means for managing connection with a client.

[0047] <Efficiency Promotion Means>

[0048] The efficiency promotion means includes video delivery means for delivering video data obtained from a video server to a plurality of clients, and information delivery means for delivering various information such as server status obtained from a video server to a plurality of clients.

[0049] <Delivery-Method Switching & Execution Means>

[0050] The delivery method switching & execution means includes delivery-method switching means for switching the method for transmitting a request message and a reply in accordance with the video server, and delivery-method execution means for executing issuance of a request message and a reply in accordance with a video server.

[0051] <First Embodiment>

[0052] Hereinbelow, an example to realize the above respective means will be described as a first embodiment.

[0053] note that in the present embodiment, the respective elements are realized as a server program independent of the video server and video client. The independent server program (a program which runs on a server device) will be referred to as a “conversion server”.

[0054] First, the outline of the operation of the conversion server will be described with reference to FIG. 2. Video servers 201 to 203 are programs which operate on, e.g., a general-purpose device such as a personal computer. Each general-purpose device is connected to a storage device containing video information and a video camera for obtaining a live video image. If the video information is required, the server delivers video information onto a network 207. Further, video clients 204 to 206 operate on a device such as a personal computer. Each video client is started by a user, then functions as a client, receives video data and displays the video data.

[0055] In the video delivery system which has been proposed by the present assignee, the video server and the video client perform communication via the network 207 to perform services. For example, when the video client 204 makes a connection with the video server 201 and transmits a video acquisition request message, the video server 201 starts transmission of video data to the video client 204. The video client 204 displays the received video data on a display or the like.

[0056] In the present embodiment, a conversion server 208 is provided between the video servers and the video clients. The conversion server 208 converts video data transmitted from the video servers 201 to 203 via the network 207 into an HTTP message (HTTP is described in detailed in RFC (Request For Comments)1945) then transmits the message to all or any of the video clients 204 to 206.

[0057] The basic operation of the present embodiment using the conversion server 208 is as follows.

[0058] First, the video acquisition request from the video client 204 is transmitted to the conversion server 208 in place of the video server 201. The video acquisition request is transmitted in HTTP message format. The conversion server 208 converts the HTTP message into a message of a format unique to the video server 201. The converted video acquisition request message is transferred to the video server 201, and the video server 201 performs processing in accordance with the request. For example, if the video server is “VDOLive”, the video server starts to output a video stream, or if the video server is “WebView/Livescope” (a trademark by Canon Kabushiki Kaisha), the video server transmits video data for only one frame.

[0059] The result of processing by the video server is transmitted in the data format of Motion JPEG, MPEG or the like, to the conversion server 208. The conversion server 208 converts the video data into an HTTP message and sends the message to the video client 204. Note that the conversion to HTTP is made by adding information on data type, data size, date and the like to the original data.

[0060] Next, the respective elements of the conversion server will be described with reference to FIG. 1.

[0061] In FIG. 1, programs, which function as the conversion server, the video server and the video client, operate on three computers 101 to 103. The computers 101 to 103 are interconnected via a network 104 and can mutually transmit/receive a message. FIG. 1 only shows one video client and one video server, however, actually, a plurality of video clients and video servers are used as shown in FIG. 2. Further, the number of the video servers and that of the video clients do not pose any limitation on the present invention.

[0062] The computer 101 is provided with a secondary storage device such as a hard disk 108 for storing various program files of the conversion server. Further, the computer 101 includes a CPU 105 for actually performing the processing by the conversion server and a main memory 107 for holding an execution image (a program code and various data and table and the like used in the conversion) by the conversion server 109. The CPU 105 and the main memory 107 are connected via a bus 106.

[0063] A conversion server 109 consists of a group of software modules as follows. Note that “software module” means a set of data, a series of procedures and a group of functions generated by a program language such as C and C++. The software module has a function or procedure as an interface for cooperation with another software module. The interfacing function or procedure is referred to as an “entry point” here. To call another module, it is necessary to somehow obtain the memory address of the entry point of the module to be called. Generally, the address information of an entry point can be obtained upon compilation or linkage time.

[0064] (The Software Modules) a message transceiver 110 a message interpreter 111 a client session manager 112 a server information manager 113

[0065] Further, the conversion server 109 includes a processing module 114 corresponding to the type of a specific video server to communicate with the conversion server 109. Although FIG. 2 shows only one processing module 114, however, actually, a plurality of processing modules for plurality of servers may be provided.

[0066] The processing module 114 performs processing regarding the communication method or message format unique to the specific video server to communicate with the conversion server 109. The processing module 114 further includes the following submodules: a server session manager 115 an information deliverer 116 a video deliverer 117 a message transceiver 118 for the specific server.

[0067] Next, the outline of the modules and submodules 110 to 118 will be described.

[0068] [Message Transceiver 110]

[0069] The message transceiver 110 provides other module and submodule with means for receiving a message transmitted from the video server 102 and the video client 103 via the network 104. Further, the message transceiver 110 provides other module and submodule with means for transmitting a reply message or the like to the video server 102 and the video client 103.

[0070] The message transceiver is realized by utilizing a general interprocess communication protocol, TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) or the like using a socket or the like. Note that some type of video server requires a specific communication method or protocol such as RTP (Realtime Transfer Protocol). For such video server, a message transceiver 118 for the server is added to the processing module 114, and the function of the message transceiver 118 is utilized. The message transceiver 110 is used for communication with the video client 103 or communication with a video server which does not require a specific communication method.

[0071] Note that the present Web browser performs communication based on the HTTP protocol on the TCP protocol, however, a different communication method might be employed in the future. In such case, a “message transceiver” for a specific video client in correspondence with the type of the client can be prepared. The message transceiver for the client can be realized and controlled in the same way as that for the message transceiver for the server.

[0072] [Message Interpreter 111]

[0073] The message interpreter 111 interprets various messages (hereinafter referred to as “requests” or “request messages”) transmitted from a video client and instructs other modules to perform corresponding processing. Each request message includes a message ID to discriminate the request type. The messages interpreted by the message interpreter 111 are:

[0074] a session start request

[0075] a session termination request

[0076] a video acquisition request

[0077] an information acquisition request

[0078] The respective requests will be described later.

[0079] [Client Session Manager 112]

[0080] The client session manager 112 provides means for “absorbing difference between communication methods” as described above. More specifically, for obtaining correspondence between connection with the video client 103, disconnected for each communication, and connection with the video server 102, maintained by the end of service, the client session manager 112 allots a unique ID number to each video client upon the first connection establishment between the video client and the conversion server. Thereafter, when the video client sends a request to the conversion server 101, the ID number (connection ID) is added to the request. By this arrangement, even though the connection between the video client and the video server is disconnected for each communication, the correspondence between the video server that transmits video data and the video client that receives the video data can be maintained. The connection ID can be regarded as virtual connection which continues between the video client 103 and the conversion server 101. This virtual connection will be called a “session”.

[0081] The above processing can be easily realized by managing the correspondence between the connection ID's and corresponding video servers in the form of a table.

[0082] [Server Information Manager 113]

[0083] The server information manager 113 is a module to manage entry points to the processing module(s) 114. For example, regarding a session start request from the video client 103, the server information manager 113 searches for an entry point of a necessary processing module for a specific server, with the type information of the specific video server added to the request as a key. Thus, the obtained processing module takes over the control, to execute actual processing such as session starting processing.

[0084] The above processing by the server information manager 113 can be realized by using a table containing entry points to processing modules as its values, with video-server type information (for example, a character string such as “WebView/Livescope Ver1.10”) as a key.

[0085] Further, in a case where the conversion server is realized on an OS providing dynamic link means, the processing modules may be provided as files apart from the conversion server, and necessary processing module(s) may be automatically read when starting the conversion server. The server information manager 113 also has this function. Note that this processing is not essential in the present invention. In the present embodiment, the conversion server includes necessary processing module(s) in advance.

[0086] [Server Session Manager 115]

[0087] When the conversion server 109 receives a session start request and a session termination request from the video client 103, the server session manager 115 generates session-start and session-termination request messages unique to the video server (102 in FIG. 1), and execute session starting processing and session terminating processing to start and terminate the session with the video server.

[0088] Note that the server session manager 115 establishes only one connection (hereinafter the connection with the video server will be referred to as a “server session”) even if a plurality of video clients send a session start request to the same video server. When the server session manager 115 receives a session start request, it first checks whether or not a requested server session with a corresponding video server has been established already. If the server session has not been established yet, the server session manager 115 newly establishes a server session with the video server.

[0089] Note that if video transfer requests to one video server are received from a plurality of clients, the conversion server perform mediation and transmit video data from the video server to the respective clients.

[0090] [Video Deliverer 117]

[0091] When the video deliverer 117 receives a video acquisition request from the video client 103, it issues a video acquisition request for the video server 102, and obtains latest video data from the video server 102. Note that if the video server periodically transmits video information, the video deliverer 117 obtains latest video data without issuing video acquisition request.

[0092] The obtained video data is stored in a video buffer in the video deliverer 117. Regarding video acquisition requests from a plurality of video clients “approximately simultaneously received” by the conversion server 109, the video data in the video buffer can be transmitted to the video clients. In this manner, the number of communications with the video server can be reduced, and the execution efficiency can be improved.

[0093] Note that to process the “approximately simultaneously received” video acquisition requests,

[0094] (1) requests arrived within a predetermined period are regarded as simultaneously arrived requests; or

[0095] (2) all the requests arrived from the start to the end of video acquisition request processing are regarded as simultaneously arrived requests. In the present embodiment, a client that issues a video acquisition request at the highest speed is used as a reference client. In this method, during a period between the point where the client 1 issues a video acquisition request (request 1) to the point where the client 1 issues the next video acquisition request (request 2), video acquisition requests sent from other clients are regarded as “approximately simultaneously received”, and video data in the video buffer obtained from the video server by the request 1 is transmitted to the clients.

[0096] [Information Deliverer 116]

[0097] The video server, proposed by the present assignee, to serve video images obtained by a camera provides means for obtaining not only video data but also information on the status of the video server or information on the network 104. The video client obtains necessary information by issuing an information acquisition request to the video server.

[0098] Further, some type of video servers have a function to automatically notify their server status even if the video client does not issue any request. For example, the server WebView/Livescope for operation of a remote video camera, automatically notifies every change in the direction and zooming of the camera to all the video clients. As the server information or notification information is common to the plurality of video clients, buffering similar to that of video data is performed.

[0099] The information deliverer 116 performs acquisition of server information and notification information from a video server and delivery processing by buffering. Especially, regarding a video server having a notification function, information once stored in the buffer is effective until a new change is notified from the video server. In this case, information requests from the video clients, received during a period from a point where the server information is stored into the buffer to a point where new server information is stored into the buffer, can be processed very quickly without inquiring of the server.

[0100] [Message Transceiver 118]

[0101] The message transceiver 118 is a transmission/reception module for a specific server. The message transceiver 118 has the same has a function similar to that of the server message transceiver 110. Further, if the processing module 114 does not require a transmission/reception module for a specific server, the message transceiver 118 is realized as a module to call the function of the server message transceiver 110.

[0102] Next, a communication protocol between the video client 103 and the conversion server 109 will be briefly described the video client 103 transmits the following requests to the conversion server 109 to cause the conversion server to perform necessary processing.

[0103] Session Operation

[0104] OpenCameraServer

[0105] CloseCameraServer

[0106] Image Acquisition

[0107] GetLiveImage

[0108] Information Acquisition

[0109] GetNotice

[0110] GetVideoInfo

[0111] Camera Operation

[0112] OperateCamera

[0113] GetCameraControl

[0114] GetCameraInfo

[0115] The respective requests are based on the HTTP 1.0. protocol these requests are transmitted as GET commands generated from URL (Universal Resource Locator) format data to be described later to the conversion server. (Note that the HTTP 1.0 protocol, URL's, and the conversion from a URL to a GET command are explained in detail in the RFC 1945).

[0116] In the present embodiment, the HTTP protocol is not necessarily used as a protocol between the video client and the video server, but a specific message method or protocol may be used. However, in such case, the video client might not be realized by a general function of the Web viewer. In use of FTP, SMTP (Simple Mail Transfer Protocol) and the like, the above problem does not occur, therefore, these protocols can be employed for the HTTP protocol. In this case, necessary processing can also be realized by the following method. Hereinbelow, the purpose of the respective requests and URL formats of the requests, and the formats of replies to the requests will be given.

[0117] OpenCameraServer

[0118] [Purpose] To start session with a video server

[0119] [Format]

[0120] http://<host name of conversion server>:<port number>/OpenCameraServer?

[0121] vc_host=<host name of video server>&

[0122] vc_host=<port number of video server>&

[0123] server type=<type of video server>

[0124] If information on the video server is necessary besides the above information (host name of video server, port number and type of video server), arbitrary information in the following format may be added.

[0125] <name of additional information>=<value of additional information>

[0126] Example

[0127] cc_host=<host name of camera control server>

[0128] [Reply] If processing was successful, a connection ID is returned to the video client in the following format.

[0129] HTTP/1.0 200 OK

[0130] <additional information such as data type, date and data size>

[0131] connection_id=<connection ID>

[0132] CloseCameraServer

[0133] [Purpose] To terminate session with a video server.

[0134] [Format]

[0135] http://<host name of conversion server>:<port number>/CloseCameraServer?

[0136] connection_id=<connection ID>

[0137] [Reply] If processing was successful, a character string “OK” is returned.

[0138] GetLiveImage

[0139] [Purpose] To request acquisition of video data.

[0140] [Format]

[0141] http://<host name of conversion server>:<port number>/GetLiveImage?

[0142] connection_id=<connection ID>&

[0143] frame_count=<number of frames>

[0144] At frame_count, an integer “1” or greater is set. The client can receive video data for the designated number of frames.

[0145] [Reply] Video data for the designated number (set at frame_count) is returned. Note that the format of reply in a case where the number of frames is “1” is somewhat different from that in a case where the number of frames is “2” since video data for two or more frames is transmitted by the Serverpush format (described in detail in the RFC 1945).

[0146] A. In a case where the number of frames is “1”

[0147] HTTP/1.0 200 OK

[0148] <additional information such as data type, date and data size>

[0149] <video information>

[0150] B. In a case where the number of frames is “2” or greater

[0151] HTTP/1.0 200 OK

[0152] <additional information such as data type, date and data size>

[0153] Content-type:multipart/x-mixed-replace;boundary=JointServerImage--JointServerImage

[0154] Content-Length:<data length for 1 frame>

[0155] Content-type:<data type for 1 frame>

[0156] <video information for 1 frame>

[0157] --JointServerImage

[0158] . . .

[0159] . . .

[0160] --JointServerImage--

[0161] GetNotice

[0162] [Purpose] To obtain content of latest notification from video server.

[0163] [Format]

[0164] http://<host name of conversion server>:<port number>/GetNotice?

[0165] commenction_id=<connection ID>

[0166] [Reply] Only if the video server as the destination of server session has a function to automatically transmit a notification message, a reply in the following format can be obtained.

[0167] HTTP/1.0 200 OK

[0168] <additional information such as data type, date and data size>

[0169] . . .

[0170] <name of information>=<value of information>

[0171] . . .

[0172] For example, in case of WebView/Livescope, as the change in the direction of a video camera is notified from the video server, the following reply can be obtained:

[0173] HTTP/1.0 200 OK

[0174] . . .

[0175] pan=<horizontal direction of video camera>

[0176] tilt=<vertical direction of video camera>

[0177] zoom=<zooming>

[0178] The information obtained as above differs depending on the type of video server.

[0179] GetVideoInfo

[0180] [Purpose] To obtain video related information

[0181] [Format]

[0182] http://<host name of conversion server>:<port number>/GetVideoInfo?

[0183] connection_id=<connection ID>

[0184] [Reply] Although the type of information differs depending on the type of video server, information in the following format is returned.

[0185] HTTP/1.0 200 OK

[0186] <additional information such as data type, date and data size>

[0187] . . .

[0188] <name of information>=<value of information>

[0189] . . .

[0190] In a general video server, the following information can be obtained:

[0191] image_width=<lateral length of video data>

[0192] image_height=<vertical length of video data>

[0193] compression type=<compression method for video data>

[0194] frame_rate=<frame rate>

[0195] GetCameraInfo

[0196] [Purpose] To obtain video-camera related information.

[0197] [Format]

[0198] http://<host name of conversion server>:<port number>/GetCameraInfo?

[0199] connection_id=<connection ID>

[0200] [Reply] Only if the video server can remote-operate a video camera, a reply in the following format can be obtained.

[0201] HTTP/1.0 200 OK

[0202] <additional information such as data type, date and data size>

[0203] . . .

[0204] <name of information>=<value of information>

[0205] . . .

[0206] For example, in case of WebView/Livescope, as the change in the direction of a video camera is notified from a video server, the following reply can be obtained.

[0207] HTTP/1.0 200 OK

[0208] . . .

[0209] pan_left_limit=<operation limit in leftward direction>

[0210] pan_right_limit=<operation limit in rightward direction>

[0211] pan_current_value=<current position in horizontal direction>

[0212] tilt_up_limit=<limit in upward direction>

[0213] tilt_down_limit=<limit in downward direction>

[0214] tilt_current_value=<current position in vertical direction>

[0215] zoom_wide_limit=<limit of zooming>

[0216] zoom_tele_limit=<limit of zooming>

[0217] zoom_current_value=<zoom current value>

[0218] GetCameraControl

[0219] [Purpose] To request camera control right.

[0220] [Format]

[0221] http://<host name of conversion server>:<port number>/GetCameraControl?

[0222] connection_id=<connection ID>

[0223] [Reply] Only if the video server can remote-operate a video camera, a character string OK can be received.

[0224] OperateCamera

[0225] [Purpose] To request video camera operation.

[0226] [Format]

[0227] http://<host name of conversion server>:<port number>/OperateCamera?

[0228] connection_id=<connection ID>&

[0229] pan=<designation of horizontal direction>&

[0230] tilt=<designation of vertical direction>&

[0231] zoom=<designation of zooming>

[0232] [Reply] Only if the video server can remote-operate a video camera, a character string “OK” can be received.

[0233] Next, the flow from the start to the end of session between the video client and the conversion server by using the above-described requests will be described. The flow divides into the following five phases.

[0234] 1. Start of session

[0235] 2. Acquisition of video data

[0236] 3. Acquisition of information

[0237] 4. Camera operation

[0238] 5. Termination of session

[0239] Note that the “camera operation” phase is available only in a session with a camera-operating video server such as WebView/Livescope.

[0240] 1. Start of Session

[0241] When the video client transmits the OpenCameraServer request to the conversion server, a session with the video server starts. As a reply to the OpenCameraServer request, a connection ID allotted to the video client is returned. The connection ID is used in all the subsequent requests.

[0242] 2. Acquisition of Video Data

[0243] When the video client transmits the GetLiveImage request to the conversion server, the video client can obtain video data as a reply to the request.

[0244] 3. Acquisition of Information

[0245] When the video client transmits the GetVideoInfo request to the conversion server, the video client can obtain information on video size, frame rate and the like, as a reply to the request.

[0246] 4. Camera Operation

[0247] Camera operation is made by the following procedure. First, the video client requests a camera operation right by the GetCameraControl request. If the video client obtains the camera operation right, the video client sends the OperateCamera request to the conversion server, and operates the camera.

[0248] Note that the camera operation right, i.e., a right to change a camera angle (pan angle, tilt angle, zooming and the like) is owned by only one client for each camera (except a case where a plurality of cameras are connected to a video server). The camera operation right is provided in several methods already proposed by the present assignee. In this embodiment, the operation right is provided to a first-connected client for a predetermined period, prior to other clients.

[0249] 5. Termination of Session

[0250] When the video client transmits the CloseCameraServer request to the conversion server, the conversion server terminates the session with the video server used by the client, and invalidates the connection ID. To obtain video data again, the video client must issue the OpenCameraServer request again to establish connection.

[0251] Next, the operations of the respective elements in the basic operation of the conversion server will be described.

[0252] <1. Start of Session>

[0253] First, the session starting processing will be described with reference to FIG. 3 showing the concept of operation and the flowchart of FIG. 7.

[0254] When a video client 303 transmits the session start request (OpenCameraServer, 319) and a message transceiver 310 receives the request (step S701), the received request is transferred to a message interpreter 311 (step S702). The message interpreter 311 extracts a message ID from the transferred session start request 320 (step S703).

[0255] The message ID in the present embodiment is a request name portion of a request except a parameter portion. In the session start request, the message ID is the character string “OpenCameraServer”. The message interpreter 311 compares a group of messages pre-stored in a hard disk or the like with the received message name, and determines what request has been transmitted. As a result, if the request is not a session start request (step S704), processing with respect to another request is performed (step S705).

[0256] If the received request is a session start request (step S704), the type, host name and port number of server, added as parameters to the session start request are extracted from the request. If additional information unique to a specific video server is added to the request, that portion is also extracted as a pair of parameter name and value (step S706).

[0257] Next, the message interpreter 311 issues a session start instruction (or command) (321) to a client session manager 312 (step S707). The extracted parameters are added to the session start instruction. The session start instruction (321) is realized by a message in an object-oriented language such as C++.

[0258] The client session manager 312 receives the session start instruction (321), then first allots a connection ID to the video client 303 (step S708). The connection ID is an integer “1” or greater, and the value of the connection ID is incremented for each allotment (other methods may be employed as long as a unique ID is allotted to each client). The allotted connection ID is transmitted via the message transceiver 310 to the video client (step S709). Further, the client session manager 312 issues a processing module acquisition instruction (322) to the server information manager 313 (step S710).

[0259] The server information manager 313 searches a table pre-stored in a storage device for a processing module for the server (302 in FIG. 3), with the server type information added to the processing-module acquisition instruction (322) as a key (step S711). The entry point of the processing module obtained as a result of search is notified as a reply (323) to the processing-module acquisition instruction to the client session manager 312.

[0260] Next, the client session manager 312 issues an instruction to establish a session with the server (server session start instruction, 324) via the entry point of the obtained processing module 314 to a server session manager 315 (step S712). The server session manager 315 receives the server session formation instruction (324), extracts the host name, the port number of the server and other specific additional information added to the instruction (324), searches its internal management table with these information as keys, and checks whether or not a session with the server has been established already. If the session has been established (step S713), the server session manager 315 returns the address of the session (more exactly, data structure representing the session) to the client session manager 312. The client session manager 312 adds the obtained session information to the entry in the management table obtained with the connection ID as the key (step S714).

[0261] Further, if the session has not been established yet (step S713), the server session manager 315 executes server-session starting processing including establishment of connection with the video server 302 (step S715) and transmission of a session start request message (327) to the video server 302 (step S716), by using the server message transceiver 316. When the session with the video server 302 is started, the information on the session (mainly including information necessary for communication with the video server such as socket) is collected and server session information is generated, and the information is returned, to the client session manager 312. The client session manager 312 adds the received session information to the entry with the connection ID as the key in the internal management table.

[0262] Then, the session starting processing ends.

[0263] <2. Termination of Session>

[0264] Next, the session termination processing will be described with reference to FIGS. 4 and 8.

[0265] When a video client 403 issues a session termination request (CloseCameraServer, 419), and a message transceiver 410 receives the request (step S801), the received request is transferred to a message interpreter 411 (step S802). The message interpreter 411 extracts a message ID from the transferred session termination request (420). The message interpreter 411 compares the message name with the message names of the respective requests, and determines what request has been transmitted (step S803). As a result, if the received request is not a session termination request (step S804), processing with respect to another request is performed (step S805).

[0266] If the received request is a session termination request (step S804), a connection ID added as a parameter to the session termination request is extracted (step S806).

[0267] Next, the message interpreter 411 issues a session termination instruction (421) to a client session manager 412 (step S807). The client session manager 412 receives the instruction (421), and extracts session information from its own management table with the connection ID as a key (step S808). Then, the client session manager 412 deletes the entry from the management table (step S809).

[0268] Then, the client session manager 412 examines how many entries with connection ID's having the value of the session information extracted at step S808 are registered in the management table (step S810). The examination may be made by counting the number of registered entries of the same session information by searching the table values, or by managing a reference count with server session information. In any case, if the session information other than the deleted entry with the connection ID (step S811) are referred to, the client session manager 412 notifies the video client (403) of the completion of the session termination processing by using the message transceiver 410 (step S815) since further processing is not necessary.

[0269] Further, if the session information is not shared by other video client(s) (step S811), the client session manager 412 issues a server-session termination instruction (422) to a server session manager 415 (step S812). The server session manager 415 performs server-session termination processing including transmission of a session termination request (425) to a video server 402 (step S813) via a transceiver 416 for the video server 402. Finally, the server session manager 415 disconnects the connection with the video server 402, and notifies the video client 403 of the completion of the processing (step S815).

[0270] Thus, the session termination processing is completed.

[0271] <3. Acquisition of Video Data>

[0272] Next, video acquisition processing will be described with reference to FIGS. 5 and 9.

[0273] When a video client 503 issues a video acquisition request (GetLiveImage, 519), and a message transceiver 510 receives the request (step S901), the received request is transferred to a message interpreter 511 (step S902). The message interpreter 511 extracts a message ID from the transferred video acquisition request (510) (step S903). The message interpreter 511 compares the message name with message names of the respective requests to check what request has been transmitted (step S903). As a result, if the received request is not a video acquisition request (step S904), processing with respect to another processing is performed (step S905).

[0274] If the received request is a video acquisition request (step S904), a connection ID added as a parameter to the request is extracted (step S906). Next, the message interpreter 511 issues a video acquisition instruction (521) to a client session manager 512 (step S907). The client session manager 512 receives the instruction (521), and extracts server session information from its management table with the connection ID as a key (step S908). Further, the client session manager 512 transfers the video acquisition instruction (522) to a video deliverer 517 (step S909).

[0275] The video deliverer 517 first examines its video data buffer managed by the video deliver 517 itself to determine whether or not the latest video data is held there. In the present embodiment, sequential numbers are allotted to the respective video data for the above examination. That is, each time video data is registered in the buffer, a number is allotted to the data. Further, the number of referred video data is managed for each video client with session information in the management table of the client session manager 512. If video data with a number greater than that of video data last referred to for the client is registered in the buffer, the video image can be regarded as the latest video image.

[0276] If it is determined as a result of the examination of the buffer that the content of the buffer is the latest video image (step S910), the video deliverer 517 returns the video data in the buffer to the video client 503 via the message transceiver 510 (step S914). If the number allotted to the video data in the buffer is the same as that of the last referred video data, it is determined that the content of the buffer is not the latest (step S910). Then, the video deliverer 517 performs video acquisition processing including sending a video acquisition request 525 to a video server 502 via a message transceiver 516 for the video server 502 (step S911). When the latest video data is obtained from the video server 502 (step S912), the video deliverer 517 rewritten the content of the buffer with the new video data (step S913), and returns the video data in the buffer via the message transceiver 510 to the video client 503 (step S914).

[0277] Thus, the video acquisition processing is completed. In the present embodiment, a number is allotted to the video data, and further, the number of video data last referred to for each client is stored. By this arrangement, regarding a client which operates at the highest speed, as the number of video data in the buffer coincides with that of last referred video data, the video data in the buffer is updated. That is, the video data in the buffer is updated by the fastest client. Further, regarding other slower clients, as the number of last referred video data is less than that of video data in the buffer, the video data in the buffer is returned to those clients.

[0278] <4. Acquisition of Information>

[0279] Information acquisition processing is realized by performing processing, similar to the video acquisition processing by the video deliverer in FIG. 5, by an information deliverer. Similar to the management of video data, the latest information is managed in a buffer of the information deliverer, so that the number of communications with a video server can be reduced.

[0280] <5. Camera Operation>

[0281] In the internal processing in the conversion server, to operate a camera, a request (camera operation request) is transmitted and information on the status of the camera is returned. Therefore, the camera operation can be handled by the same method as that for the information acquisition.

[0282] As described above, the conversion server of the present invention includes:

[0283] a message transceiver between a video client and a video server

[0284] a message transceiver for a specific video server

[0285] a client session manager for managing connection with a video client

[0286] a video deliverer for obtaining video data from a video server and delivering the video data to a plurality of video client

[0287] an information deliverer for obtaining various information from a video server and delivering the information to a plurality of video clients

[0288] a server information manager for changing a method for issuing a request message and a reply in accordance with a video server

[0289] a server session manager for executing issuance of a request message and a reply in correspondence with a video server

[0290] Accordingly, the present embodiment utilizing the HTTP protocol as a protocol between a conversion server and the video client provides video service to even a video client protected by a fire-wall system in a network.

[0291] Further, in the present embodiment, by utilizing the HTTP GET commands in a protocol between the conversion server and the video client, a video client can obtain and display video data without extending a Web browser.

[0292] <Second Embodiment>

[0293] Next, a second embodiment will be described as an example where the group of substitutional execution means and the group of efficiency improvement means in the above first embodiment are realized as a server independent of the group of switching means. More specifically, the processing module for a specific server in the same server program in the first embodiment is realized as a server program independent of the conversion server. This server as the processing module will be referred to as a “subconversion server”.

[0294] First, the operation of the second embodiment will be described with reference to FIG. 10. In FIG. 10, video servers 1001 to 1003 and video clients 1004 to 1006 are interconnected via a network 1007, similar to the video servers and video clients in FIG. 2. However, the second embodiment provides a plurality of conversion servers 1008 to 1010, and a plurality of subconversion servers 1011 to 1013, respectively connected to the network 1007. The video clients 1004 to 1006 perform communication with the conversion servers 1008 to 1010, and the video servers 1001 to 1003 establish sessions with the subconversion servers 1011 to 1013.

[0295] In the second embodiment, even though the plurality of conversion servers are provided, the subconversion servers may be provided in correspondence with the types of video servers. For example, in a case where the subconversion server 1011 for the video server 1001 operates, the subconversion server 1011 can be commonly used by the conversion servers 1008 to 1010 for communication with the video server 1001. Further, as the video client can use any of the conversion servers 1008 to 1010, the video client can select the most convenient conversion server in correspondence with the status of the network 1007 and the like.

[0296] Next, the respective elements of the second embodiment will be described with reference to FIG. 6. In FIG. 6, the CPU and the main memory in FIG. 1 are omitted, however, the elements of the present embodiment operate on a computer (including a general-purpose device such as a personal computer), therefore, description will be made on the premise that a CPU, a main memory, a bus, a secondary storage device such as a hard disk are also provided in the present embodiment. Further, FIG. 6 only shows one video client 603 and one video server 602 connected via a network 620, however, actually, a plurality of video clients and video servers are connected to the network 620, as described in FIG. 1.

[0297] The respective elements of the second embodiment divide into a conversion server 604 and a subconversion server 605. The number of these servers may be increased as shown in FIG. 10.

[0298] First, the conversion server 604 has the following modules: a message transceiver 606 a message interpreter 607 a client session manager 608 a server information manager 609 a data base interface 610

[0299] The modules 606 to 609 play the same roles and perform the same operations as those of the corresponding modules in FIG. 1. The data base interface 610 added to the construction of the present embodiment is a relational data base to utilize the function of a data-base management system 601. Note that the data base is of any type in the present embodiment.

[0300] For example, the second embodiment can be realized by using an object-oriented data base as the data-base management system 601. In the client session manager and the server information manager of the first embodiment, the management of connection ID or the like is realized by using an internal table. On the other hand, data management and search functions of the second embodiment are provided by the data-base management system 601.

[0301] Further, the server manager of the first embodiment manages entry points to processing modules for specific servers, while the server manager 609 of the second embodiment manages information such as host names, port numbers and sockets necessary for communication with the subconversion server.

[0302] Next, the subconversion server 605 will be described. The subconversion server 605 comprises the following modules: a message transceiver 611 a server session manager 612 a message transceiver 613 for a specific server an information deliverer 614 a video deliverer 615 a data base interface 616

[0303] The modules 612 to 615 play the same roles and perform the same operations as those of the corresponding modules in FIG. 1. Further, the message transceiver 611 is mainly used for communication with the conversion server 604. The message transceiver 611 has a function similar to that of the message transceiver 606 in the conversion server 604. Further, the subconversion server 605 has a data base interface 616. The contents of the buffers in the video deliverer and information deliverer are managed by the data-base management system 601, and shared by the plurality of subconversion servers and conversion servers.

[0304] As described above, many of the respective elements of the second embodiment have the same functions and the perform almost the same operations as those of the corresponding elements of the first embodiment.

[0305] Accordingly, only the difference in operation from the first embodiment will be described below.

[0306] 1. Information managed by a table in the first embodiment is managed by a data base. Registration, deletion and search of data are executed by issuing a command to the data base interface.

[0307] 2. A part of instruction executed within the conversion server is transmitted/received as a request message via the network.

[0308] More specifically, such parts of instruction are as follows.

[0309] The session generation instruction (324) and the reply to the instruction in FIG. 3.

[0310] The session termination instruction (422) and the reply to the instruction in FIG. 4.

[0311] The video acquisition instruction (522) and the replay to the instruction in FIG. 5.

[0312] In the above-described second embodiment, the conversion server provides

[0313] a message transceiver between a video client and a video server

[0314] a message transceiver for a specific server

[0315] a client session manager for management of connection with a the video client

[0316] a server information manager for switching the method of issuing a request message and a reply in accordance with a video server.

[0317] Further, the subconversion server provides

[0318] a video deliverer to obtain video data from a video server and deliver the data to a plurality of video clients

[0319] an information deliverer to obtain various information from a video server and deliver the information to a plurality of video clients

[0320] a server session manager for execution of issuance of a request message and a reply in accordance with a video server.

[0321] Further, to realize the above respective modules by using the data-base management module, a data base interface is added to the conversion server and the subconversion server.

[0322] According to the second embodiment,

[0323] 1) as the conversion server and the subconversion server are provided, even if a video server of a new type is added, the new video server can be utilized from all the conversion servers and video clients only by operating one subconversion server corresponding to the video server; and

[0324] 2) as the data management is made by utilizing the data-base management system, various information and obtained video data are shared among the conversion servers and subconversion servers. By this arrangement, even if a trouble occurs to some conversion server or subconversion server, another server can operate for the server with the trouble.

[0325] As described above, according to the first and second embodiments, a remote video delivery system to serve a moving or still video image to a computer at a remote place via a computer network, provides

[0326] message transmission/reception means for transmitting/receiving a message from another program

[0327] message interpretation means for interpreting the message

[0328] connection management means for managing connection with a client

[0329] video delivery means for delivering obtained video data to a plurality of clients

[0330] information delivery means for delivering obtained various information to a plurality of clients

[0331] delivery method switching means for switching the method for issuing a request message and a reply in accordance with a video server

[0332] delivery method execution means for executing issuance of a request message and a reply in accordance with a video server.

[0333] Accordingly, the system has the following advantages.

[0334] 1) The difference in communication format between the video delivery system and the World Wide Web system can be absorbed.

[0335] 2) The reduction in execution efficiency due to integration of the video client and a Web browser can be prevented.

[0336] 3) The difference in video delivery method for each video server can be absorbed, and a general-purpose video client can be realized.

[0337] Note that as described above, in the first and second embodiments, the conversion server and the subconversion server require hardware for connection with the network, however, these servers can be realized by programs which run on general-purpose devices such as personal computers.

[0338] Accordingly, the object of the present invention can be also achieved by providing a storage medium storing program codes for performing the aforesaid processes to a system or an apparatus, reading the program codes with a computer (e.g., CPU, MPU) of the system or apparatus from the storage medium, then executing the program.

[0339] In this case, the program codes read from the storage medium realize the functions according to the embodiments, and the storage medium storing the program codes constitutes the invention.

[0340] Further, the storage medium, such as a floppy disk, a hard disk, an optical disk, a magneto-optical disk, CD-ROM, CD-R, a magnetic tape, a non-volatile type memory card, and ROM can be used for providing the program codes.

[0341] Furthermore, besides aforesaid functions according to the above embodiments are realized by executing the program codes which are read by a computer, the present invention includes a case where an OS (operating system) or the like working on the computer performs a part or entire processes in accordance with designations of the program codes and realizes functions according to the above embodiments.

[0342] Furthermore, the present invention also includes a case where, after the program codes read from the storage medium are written in a function expansion card which is inserted into the computer or in a memory provided in a function expansion unit which is connected to the computer, CPU or the like contained in the function expansion card or unit performs a part or entire process in accordance with designations of the program codes and realizes functions of the above embodiments.

[0343] Further, the stream information service of the present invention is applicable to any realtime information service handling operation data, audio data and the like.

[0344] As described above, according to the present invention, information transmission can be performed between a server which serves information by its own communication format and a client which receives service on a general network, with an efficient and simple construction.

[0345] As many apparently widely different embodiments of the present invention can be made without departing from the spirit and scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims. 

1-21 (Canceled) 22 (Canceled)
 23. A relay apparatus for delivering video stream data from a server having an image sensing device to clients via Internet, comprising: a connection management device adapted to make a connection with the server having the image sensing device via Internet, to get the video stream data from the server having the image sensing device, and to deliver video stream data to a first client in response to a request from the first client via Internet, a memory control device adapted to store the video stream data from the server having the image sensing device, in a buffer memory, wherein said connection management device delivers the video stream data stored in the buffer memory to the first client without starting a new connection between the relay apparatus and the server, in case that a connection between the relay apparatus and the server having the image sensing device to deliver the video stream data to a second client different from the first client has been established.
 24. The apparatus according to claim 23, wherein a protocol between the relay apparatus and the clients is HTTP.
 25. The apparatus according to claim 23, wherein the connection management device converts a first format of the video stream data to a second format for the clients.
 26. The apparatus according to claim 23, wherein said connection management device delivers the video stream data stored in the buffer memory to the first client without starting a new connection between the relay apparatus and the server, in case that said connection management device receives requests each from the first client and second client within a predetermined period.
 27. The apparatus according to claim 23, wherein said connection management device delivers the video stream data stored in the buffer memory to the first client without starting a new connection between the relay apparatus and the server, in case that said connection management device receives the request from the first client within a predetermined period from receiving a request from the second client.
 28. The relaying method to deliver video stream data from a server having an image sensing device to clients via Internet, comprising the steps of: making a connection between a relay apparatus and the server having the image sensing device via Internet, getting the video stream data from the server having the image sensing device and storing the video stream data in a buffer memory, delivering the video stream data in the buffer memory to a first client in response to a request from the first client via Internet, wherein the video stream data is delivered to the first client without starting a new connection between the relay apparatus and the server, in case that a connection between the relay apparatus and the server having the image sensing device to deliver the video stream data to a second client different from the first client has been established.
 29. The method according to claim 28, wherein a protocol between the relay apparatus and the clients is HTTP.
 30. The method according to claim 28, wherein a first format of the video stream data is converted to a second format for the clients.
 31. The method according to claim 28, wherein the video stream data stored in the buffer memory is delivered to the first client without starting a new connection between the relay apparatus and the server, in case that requests each from the first client and second client are received within a predetermined period.
 32. The method according to claim 28, wherein the video stream data stored in the buffer memory is delivered to the first client without starting a new connection between the relay apparatus and the server, in case that the request from the first client is received within a predetermined period from receiving a request from the second client.
 33. A storage medium to store computer program to execute a relaying method to deliver video stream data from a server having an image sensing device to clients via internet, said computer program comprising the codes of: making a connection between a relay apparatus and having the image sensing device via Internet, getting the video stream data from the server having the image sensing device and storing the video stream data in a buffer memory, delivering the video stream data in the buffer memory to a first client in response to a request from the first client via Internet, wherein the video stream data is delivered to the first client without starting a new connection between the relay apparatus and the server, in case that a connection between the relay apparatus and the server having the image sensing device to deliver the video stream data to a second client different from the first client has been established.
 34. The storage medium according to claim 33, wherein a protocol between the relay apparatus and the clients is HTTP.
 35. The storage medium according to claim 33, wherein a first format of the video stream data is converted to a second format for the clients.
 36. The storage medium according to claim 33, wherein the video stream data stored in the buffer memory is delivered to the first client without starting a new connection between the relay apparatus and the server, in case that requests each from the first client and second client are received within a predetermined period.
 37. The storage medium according to claim 33, wherein the video stream data stored in the buffer memory is delivered to the first client without starting a new connection between the relay apparatus and the server, in case that the request from the first client is received within a predetermined period from receiving a request from the second client. 